package com.qdxwx.models.document;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

public class DocumentDetail extends Document {

    private static final long serialVersionUID = -8825478682508457302L;

    //文件地址
    private String fileUrl;

    //审核人Id
    private int censorId;

    //审核人姓名
    private String censorName;

    //审核时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime censorTime;

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public int getCensorId() {
        return censorId;
    }

    public void setCensorId(int censorId) {
        this.censorId = censorId;
    }

    public String getCensorName() {
        return censorName;
    }

    public void setCensorName(String censorName) {
        this.censorName = censorName;
    }

    public LocalDateTime getCensorTime() {
        return censorTime;
    }

    public void setCensorTime(LocalDateTime censorTime) {
        this.censorTime = censorTime;
    }


    @Override
    public String toString() {
        return "DocumentDetail{" +
                "fileUrl='" + fileUrl + '\'' +
                ", censorId=" + censorId +
                ", censorName='" + censorName + '\'' +
                ", censorTime=" + censorTime +
                "} " + super.toString();
    }
}
